const _import =
  process.env.NODE_ENV === 'production'
    ? file => () => import('@/views/modules/' + file + '.vue')
    : file => require('@/views/modules/' + file + '.vue').default

export default [
  {
    path: 'funnel',
    component: _import('funnel/funnel'),
    name: 'funnel',
    meta: { title: '漏斗分析', noContentBox: true, permission: 'front:page:funnel' }
  },
  {
    path: 'funnel/config',
    component: _import('funnel/funnel-config'),
    name: 'funnel-config',
    meta: { title: '漏斗分析配置', noContentBox: true, permission: 'front:page:funnel' }
  },
  {
    path: 'customers',
    component: _import('customers/customers'),
    name: 'customers',
    meta: { title: '客群对比分析', noContentBox: true, permission: 'front:page:customers' }
  },
  {
    path: 'similar',
    component: _import('similar/similar'),
    name: 'similar',
    meta: { title: '相似人群分析', noContentBox: true, permission: 'front:page:similar' }
  },
  {
    path: 'similar/config',
    component: _import('similar/similar-config'),
    name: 'similar-config',
    meta: { title: '相似人群分析配置', noContentBox: true, permission: 'front:page:similar' }
  },
  {
    path: 'yrfm',
    component: _import('yrfm/yrfm'),
    name: 'yrfm',
    meta: { title: 'YRFM分析', noContentBox: true, permission: 'front:page:yrfm' }
  },
  {
    path: 'yrfm/config',
    component: _import('yrfm/yrfm-config'),
    name: 'yrfm-config',
    meta: { title: 'YRFM分析配置', noContentBox: true, permission: 'front:page:yrfm' }
  }
]
